package com.xm.strategy;

import lombok.extern.slf4j.Slf4j;

import java.math.BigDecimal;

/**
 * 微信支付
 */
@Slf4j
public class WechatPayStrategy implements PaymentStrategy{
    private final String openId;

    public WechatPayStrategy(String openId) {
        this.openId = openId;
    }

    @Override
    public void pay(BigDecimal amount) {
        log.info("微信支付：支付 {} 元，OpenID：{}", amount, openId);
    }
}
